home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PCMania 73
/
PCMania CD73_1.iso
/
pcmania
/
vbasic73
/
MAPA.FRM
< prev
next >
Wrap
Text File
|
1998-09-28
|
5KB
|
164 lines
VERSION 5.00
Object = "{27395F88-0C0C-101B-A3C9-08002B2F49FB}#1.1#0"; "PICCLP32.OCX"
Object = "{FE0065C0-1B7B-11CF-9D53-00AA003C9CB6}#1.0#0"; "COMCT232.OCX"
Begin VB.Form Mapa
Caption = "Mapa"
ClientHeight = 2355
ClientLeft = 5295
ClientTop = 2940
ClientWidth = 5760
LinkTopic = "Form1"
ScaleHeight = 2355
ScaleWidth = 5760
Begin VB.CommandButton Command1
Caption = "Restaurar"
Height = 375
Left = 4080
TabIndex = 8
Top = 600
Width = 1335
End
Begin ComCtl2.UpDown UpDown2
Height = 375
Left = 3600
TabIndex = 7
Top = 1320
Width = 240
_ExtentX = 423
_ExtentY = 661
_Version = 327680
AutoBuddy = -1 'True
BuddyControl = "Text2"
BuddyDispid = 196612
OrigLeft = 3720
OrigTop = 1320
OrigRight = 3960
OrigBottom = 1695
Increment = 10
Max = 228
SyncBuddy = -1 'True
BuddyProperty = 0
Enabled = -1 'True
End
Begin VB.TextBox Text2
Height = 375
Left = 3240
TabIndex = 6
Text = "0"
Top = 1320
Width = 375
End
Begin VB.TextBox Text1
Height = 375
Left = 3240
TabIndex = 5
Text = "0"
Top = 600
Width = 375
End
Begin ComCtl2.UpDown UpDown1
Height = 375
Left = 3616
TabIndex = 4
Top = 600
Width = 240
_ExtentX = 423
_ExtentY = 661
_Version = 327680
BuddyControl = "Text1"
BuddyDispid = 196617
OrigLeft = 3840
OrigTop = 600
OrigRight = 4080
OrigBottom = 975
Increment = 10
Max = 318
SyncBuddy = -1 'True
BuddyProperty = 0
Enabled = -1 'True
End
Begin VB.CommandButton Command2
Caption = "Peonzas"
Height = 375
Left = 4080
TabIndex = 3
Top = 1320
Width = 1335
End
Begin VB.PictureBox Picture1
Height = 1575
Left = 240
ScaleHeight = 101
ScaleMode = 3 'Pφxel
ScaleWidth = 101
TabIndex = 0
Top = 360
Width = 1575
End
Begin PicClip.PictureClip PictureClip1
Left = 240
Top = 2160
_ExtentX = 11060
_ExtentY = 8678
_Version = 327680
Picture = "Mapa.frx":0000
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "Establezca el valor de Y"
Height = 375
Left = 2040
TabIndex = 2
Top = 1320
Width = 1095
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "Establezca el valor de X"
Height = 375
Left = 2040
TabIndex = 1
Top = 600
Width = 1095
End
End
Attribute VB_Name = "Mapa"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'Vuelve a la esquina superior izquierda
Text1.Text = 0
Text2.Text = 0
PictureClip1.ClipX = Text1.Text
PictureClip1.ClipY = Text2.Text
Picture1.Picture = PictureClip1.Clip
End Sub
Private Sub Command2_Click()
Unload Mapa
End Sub
Private Sub Form_Load()
Mapa.Left = Peonzas.Left + 400
Mapa.Top = Peonzas.Top + 400
PictureClip1.ClipX = 1
PictureClip1.ClipY = 1
PictureClip1.ClipWidth = 100
PictureClip1.ClipHeight = 100
Picture1.Picture = PictureClip1.Clip
End Sub
Private Sub UpDown1_Change()
'Controla el desplazamiento horizontal
PictureClip1.ClipX = Text1.Text
Picture1.Picture = PictureClip1.Clip
End Sub
Private Sub UpDown2_Change()
'Controla el desplazamiento vertical
PictureClip1.ClipY = Text2.Text
Picture1.Picture = PictureClip1.Clip
End Sub